package com.sun;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;

import javax.crypto.Cipher;


/**
 * 具有熔断作用的服务Hystrix
 */
//@SpringBootApplication
@MapperScan(basePackages = "com.sun.dao")
@EnableEurekaClient //将服务注册到注册中心去
//@EnableDiscoveryClient   //服务发现的相关信息
//@EnableCircuitBreaker //添加对熔断的支持
//@EnableHystrix
@SpringCloudApplication
public class SpringProviderHystrix8001 {

    public static void main(String[] args) {
        SpringApplication.run(SpringProviderHystrix8001.class, args);
    }
}
